<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>表单补充</title>
    </head>
    <body>
        <form action="target.html">
            <!-- 
              autocomplete  关闭或开启自动补全
              readonly      将表单项设置为只读
              disabled       将表单项设置为禁用
              autofocus       设置表单项自动获取焦点
             -->
            <input
                type="text"
                name="username"
                autocomplete="off"
                value="hello"
                readonly
                disabled
                autofocus
            />
            <input type="text" name="a" />

            <input type="text" name="b" />

            <br /><br />

            <input type="color" />

            <br /><br />

            <input type="email" />

            <br /><br />

            <input type="submit" />

            <!-- 重置按钮 -->
            <input type="reset" />
            <!-- 普通的按钮,只有一个作用就是点,不像submit会提交表单信息 -->
            <input type="button" value="按钮" />

            <br /><br />

            <!-- 和input按钮的区别:元素成对出现,方便配置复杂的css样式
              这个用的更多
            -->
            <button type="submit">提交</button>
            <button type="reset">重置</button>
            <button type="button">按钮</button>
        </form>
    </body>
</html>
